package com.service;

import com.bean.Repair;
import com.dao.impl.RepairDAOImpl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface RepairService {

     List<Repair> selectAll() throws SQLException ;

     List<Repair>  selectByName(String ownerId) throws SQLException ;
     boolean deleteById(Integer id) throws SQLException;

     boolean removeAll(String[] idsArr) throws SQLException;

     boolean insert(Repair r) throws SQLException ;

     boolean update(Repair r) throws SQLException ;

     Integer count() throws SQLException;

     Integer countSearch(Map map) throws SQLException;

     List<Repair> selectAllPagination(Integer offset, Integer limit) throws SQLException ;

     List<Repair> selectAllPaginationSearch(Integer offset, Integer limit, Map map) throws SQLException ;

}